// 聊天相关的类型定义

export interface Message {
  message_id: string;
  from_user_id: string;
  to_user_id: string;
  message: string;
  timestamp_ms: number;
  timestamp: number;
  isReceived: boolean;
  file_url?: string;
  file_name?: string;
  file_type?: string;
  message_content_type?: number; // 消息内容类型：1=文本, 2=图片, 3=文件
  chat_type?: number; // 聊天类型：1=单聊，2=群聊
}

export type ConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'error';

